namespace PickGold.Charting.Design
{
    using System;
    using System.Collections;
    using System.Web.UI;

    internal class ChartBuilder : ControlBuilder
    {
        public override void AppendLiteralString(string s)
        {
        }

        public override Type GetChildControlType(string tagName, IDictionary attributes)
        {
            if (string.Compare(tagName, "Series", StringComparison.OrdinalIgnoreCase) == 0)
            {
                return typeof(Series);
            }
            if (string.Compare(tagName, "dcwc:DataPoint", StringComparison.OrdinalIgnoreCase) == 0)
            {
                return typeof(DataPoint);
            }
            if (string.Compare(tagName, "dcwc:Legend", StringComparison.OrdinalIgnoreCase) == 0)
            {
                return typeof(Legend);
            }
            if (string.Compare(tagName, "dcwc:ChartArea", StringComparison.OrdinalIgnoreCase) == 0)
            {
                return typeof(ChartArea);
            }
            return null;
        }
    }
}

